package com.woniuxy.orderassembly.service;

import com.woniuxy.common.Result;
import com.woniuxy.form.OrderForm;
import com.woniuxy.form.OrderTransferForm;
import com.woniuxy.orderassembly.model.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Update;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author chestnut
 * @since 2021-05-24
 */
public interface IOrderService extends IService<Order> {

    //订单创建
    Result createOrder(OrderForm orderForm);

    //酒店条件查询
    Result hotelQueryOrderPage(Integer hotelId, Integer status, Integer pageIdx);

    //酒店条件查询
    Result userQueryOrderPage(Integer userId, Integer status, Integer pageIdx);

    //订单的修改：(酒店处理订单消息)
    Result hotelManageOrder(Integer orderId,Boolean bool);

    //查询所有已完成的订单id 和最总结算金额
    public List<OrderTransferForm> findOrderByStatus();

    //根据订单id修改订单状态
    public void modifyOrderStatus(Integer status,Integer orderId );

}
